package com.apartment.own.domain.enums;

import com.baomidou.mybatisplus.annotation.IEnum;

import java.io.Serializable;

/**
 * 流水账单类型
 *
 * @author sxy
 */
public enum BillAccountTypeEnum implements IEnum {
    /**
     * 全部
     */
    ALL(0, "全部", 1),
    /**
     * 租约
     */
    RENT(1,"租约",0),
    /**
     * 押金
     */
    CASH_PLEDGE(2, "押金", 0),
    /**
     * 定金
     */
    EARNEST(3, "定金", 0),
    /**
     * 加收费用
     */
    EXTRA_CHARGE(4, "加收费用", 0),
    /**
     * 退定结算
     */
    BACK_EARNEST(5, "退定结算", 0),
    /**
     * 退租结算
     */
    BACK_RENT(6,"退租结算",0),
    /**
     * 记账
     */
    CHARGE(7,"记账",0);

    private Integer id;
    private String name;
    private Integer select;

    BillAccountTypeEnum(Integer id, String name, Integer select) {
        this.id = id;
        this.name = name;
        this.select = select;
    }

    public Integer getSelect() {
        return select;
    }

    public void setSelect(Integer select) {
        this.select = select;
    }

    @Override
    public Serializable getValue() {
        return this.id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    }
